*** empty log message ***
authorKenichi Handa <handa@m17n.org>
Tue, 18 Aug 2009 00:21:36 +0000 (00:21 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 18 Aug 2009 00:21:36 +0000 (00:21 +0000)
src/fontset.c

index b030887673c88a4999662a245d48c635a7464568..2bac86c19c30cd72693bf5986b112d510ce8d02b 100644 (file)
@@ -2083,6 +2083,7 @@ format is the same as above.  */)
 DEFUN ("fontset-font", Ffontset_font, Sfontset_font, 2, 3, 0,
        doc: /* Return a font name pattern for character CH in fontset NAME.
 If NAME is t, find a pattern in the default fontset.
+If NAME is nil, find a pattern in the fontset of the selected frame.
 
 The value has the form (FAMILY . REGISTRY), where FAMILY is a font
 family name and REGISTRY is a font registry name.  This is actually
@@ -2115,6 +2116,8 @@ patterns.  */)
              Lisp_Object family, registry;
 
              val = AREF (elt, j);
+             if (NILP (val))
+               break;
              repertory = AREF (val, 1);
              if (INTEGERP (repertory))
                {